﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using Cqrs.Infrastructure;

namespace Harmonic.CommandHost
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together.
    [ServiceContract]
    public interface ICqrsService
    {
        [OperationContract]
        void RegisterNewUser(string name, string email, string password, int originalVersion);

        [OperationContract]
        [FaultContract(typeof(FaultException))]
        void UpgradeUser(Guid id, string reason, int originalVersion);
        
        [OperationContract]
        [FaultContract(typeof(FaultException))]
        void DowngradeUser(Guid id, string reason, int originalVersion);

        [OperationContract]
        void DeleteUser(Guid id, string reason, int originalVersion);
    }
}
